# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=catnthecanary
pkgver=7.e9184fe
pkgrel=4
groups=('blackarch' 'blackarch-recon')
pkgdesc='An application to query the canary.pw data set for leaked data.'
arch=('any')
url='https://github.com/packetassailant/catnthecanary'
license=('MIT')
depends=('python2' 'python2-beautifulsoup4' 'python2-requests'
         'python2-wsgiref')
makedepends=('git')
source=("git+https://github.com/packetassailant/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

